﻿using Cl.Entity.BaseEntity;
using SqlSugar;

namespace Cl.Entity.DataBaseEntity.User
{

    [SugarTable("User_UserRole")]
    public class UserRole : EntityBaseComplete
    {
        /// <summary>
        /// 用户Id
        /// </summary>
        public int UserId { get; set; }




        #region 导航 1v1

        /// <summary>
        /// 角色Id
        /// </summary>
        public int RoleId { get; set; }
        //标准配置 推荐
        [Navigate(NavigateType.OneToOne, nameof(RoleId))]
        public Role Role { get; set; }


        #endregion
    }
}
